package com.atguigu.blog.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName articles
 */
@TableName(value ="articles")
@Data
public class Article implements Serializable {

    @TableId
    private Integer articleId;

    private Integer userId;

    private String title;

    private String content;

    private Date createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}